package com.atguigu.spring.demo10;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class OrangeController {

    private OrangeService orangeService;

    @Autowired
    public void setOrangeService(OrangeService orangeService) {
        this.orangeService = orangeService;
    }

    public void doSth() {
        orangeService.printMessage();
    }
}
